﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using DataAccess;
using System.Text.RegularExpressions;
using System.Text;

namespace SQT.tracnghiem.Ajax.ASP.Letter
{
    public partial class get_email_contact : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public static string convertToUnSign(string s)
        {
            Regex regex = new Regex("\\p{IsCombiningDiacriticalMarks}+");
            string temp = s.Normalize(NormalizationForm.FormD);
            return regex.Replace(temp, String.Empty).Replace('\u0111', 'd').Replace('\u0110', 'D');
        }

        public static string sendedView(string sended)
        {
            if (sended == "" || sended == null)
                return "<td><i class='fa fa-exclamation' aria-hidden='true' title=\"Chưa gửi\"></i></td>";
            else
                return "<td><i class='fa fa-plane' aria-hidden='true' title=\"Đã gửi\"></i></td>";
        }
    }
}